﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace INSTA.Concepts.HeritagePoly
{
    public abstract class Car
    {
        /// <summary>
        /// Gets or sets the speed.
        /// </summary>
        public float Speed { get; set; }

        /// <summary>
        /// Accelerates the Car.
        /// </summary>
        public abstract void Accelerate();
        
        /// <summary>
        /// Brakes the car.
        /// </summary>
        public abstract void Brake();

    }
}
